#ifndef BACKGROUNDIMAGE_H
#define BACKGROUNDIMAGE_H

#endif // BACKGROUNDIMAGE_H

#include<QGraphicsObject>
#include<QImage>
#include<QPainter>

class BacgroundImage: public QGraphicsObject
{
public:
     BacgroundImage(const QString &fileName);

     void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *);
     QRectF boundingRect() const;
     QSizeF size() const;

private:
    QImage image;
};
